package com.groupbuying.cheetah.settle.settleRefundParamsInit.controller;

import com.groupbuying.cheetah.settle.settleRefundParamsInit.service.SettleUshopWithdrawalService;
import com.groupbuying.cheetah.utils.apiresult.ApiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 *
 * @author WANGNING
 * @email wyn20140226@aliyun.com
 * @date 2019-05-13 01:53:15
 * @des 提现申请总信息
 */
@RestController
@RequestMapping("/settleUshop")
public class SettleUshopYSWithdrawalController {
	@Autowired
	private SettleUshopWithdrawalService settleWithdrawalService;

	/**
	 * @param
	 * @return
	 * @des 根据订单号查询门店的提现记录
	 */
	@PostMapping("/withdrawalList")
	public ApiResult withdrawalList(@RequestParam Map<String, Object> params){
		return ApiResult.success(settleWithdrawalService.list(params));
	}
}
